

#ifndef __DRIVE_ETH_H__
#define __DRIVE_ETH_H__

#include "lwip/mem.h"
#include "lwip/pbuf.h"

#define ETH_HW_NO_INITIALIZATION    (0xff)
#define ETH_HW_MSG_RECEIVE          (1)
#define ETH_HW_MSG_LINKED_UP        (2)
#define ETH_HW_MSG_LINKED_DOWN      (3)

err_t stm32_eth_tx(struct pbuf *p);
struct pbuf *stm32_eth_rx(void);
void stm32_eth_init(void);
int ETH_HwFetchMssg(rt_uint32_t* msg);
void ETH_ReceiveMssgIndicate(rt_uint32_t msg);

extern struct netif EMAC_if; 


#endif


